<?php
defined('IN_PHPCMS') or exit('No permission resources.');
pc_base::load_sys_class('model', '', 0);


class videos_model extends model
{

    public function __construct()
    {
        $this->db_config = pc_base::load_config('database');
        $this->db_setting = 'default';
        $this->table_name = 'videos';
        parent::__construct();
    }
    
    /*
     * 人才关联视频集删除绑定关系
     */
    public function deleteTalentvideo($talent_id) {
    	$where = "talent_id in ('$talent_id')";
    	$result = $this->delete($where);
    	return $result;
    }
    
    /*
     * 课程关联视频集删除绑定关系
     */
    public function deleteCoursevideo($course_id) {
    	$where = "course_id in ('$course_id')";
    	$result = $this->delete($where);
    	return $result;
    }
}